import React, { Component } from "react";

import store from "./store";

class App extends Component {
  render() {
    return (
      <>
        <h3>react-redux</h3>
        <button>-</button>
        <span>{store.getState().count}</span>
        <button onClick={() => store.dispatch({ type: "increment" })}>+</button>
      </>
    );
  }
}

export default App;
